package com.jflm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jflm.domain.RuleSet;
import com.jflm.domain.RuleSetData;
import com.jflm.mapper.RuleSetMapper;
import com.jflm.service.IRuleSetService;

@Service("ruleSetService")
public class RuleSetServiceImpl implements IRuleSetService{
	@Autowired
	private RuleSetMapper ruleSetMapper;

	@Override
	public List<RuleSet> findList(RuleSet ruleSet) throws Exception{
		return ruleSetMapper.findList(ruleSet);
	}
	@Override
	public List<RuleSet> findList2(RuleSet ruleSet) throws Exception{
		return ruleSetMapper.findList2(ruleSet);
	}
	@Override
	public int add(RuleSet ruleSet) throws Exception {
		return ruleSetMapper.add(ruleSet);
	}
	@Override
	public int datasave(RuleSetData ruleSetData) throws Exception {
		return ruleSetMapper.datasave(ruleSetData);
	}
	@Override
	public int delete1(RuleSet ruleSet) throws Exception {
		return ruleSetMapper.deleteById(ruleSet);
	}
	@Override
	public List<RuleSet> findList3(RuleSet ruleSet) throws Exception {
		return ruleSetMapper.findList3(ruleSet);
	}

}
